package org.example.facade;

/**
 * @author
 * @description
 */
public class DVDPlayer {

    //使用饿汉式单例模式
    private static DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("DVD is on");
    }

    public void off() {
        System.out.println("DVD is off");
    }

    public void play() {
        System.out.println("DVD is playing");
    }

    public void pause() {
        System.out.println("DVD  pause...");
    }

    //.......
}
